/**
 * @author		Sergey Suzdalskiy
 * @e-mail:		sergey.suzdalskiy@gmail.com
 */
package ua.kiev.gcore.money
{
	public class PriceList
	{
		public var list:Vector.<Price>;
		public function PriceList()
		{
			list = new Vector.<Price>();
		}
		public function toString(fixed:int = 999, suffix:String = "k", delimiter:String = " | "):String{
			var result:String = new String();
			
			for(var i:int = 0; i < list.length; i++){
				result += list[i].toString(fixed, suffix);
				if((i + 1) < list.length){
					result += delimiter
				}
			}
			
			return result;
			
		}
	}
}